const {Proxy,ProxyV2, Scenes, Location} = require('./result.js');
var ipFinder = require("./search.js");

// 1.初始化
ipFinder.loadFile("D:\\databases\\ipdatacloud_city.dat","mem");

// 2.执行查询
var res = ipFinder.get("1.2.3.4");

// 3.解析结果
var location = new Location(res);
console.log(location.toString());